package 一四省;

import java.util.Vector;

import Question1.Main;

public class q4 {

	private void fullPermutation(Vector<Character> sourse,Vector<Character> result){
        if(sourse.size()==0){
            for(int i =0;i<result.size();i++){
                System.out.print(result.elementAt(i));
            }
            System.out.println("");
            return;
        }

        for(int i=0;i<sourse.size();i++){
            Vector<Character> tsource = new Vector<>(sourse);
            Vector<Character> tresult = new Vector<>(result);
            tresult.add(sourse.elementAt(i));
            tsource.remove(i);
            new q4().fullPermutation(tsource,tresult);
        }
    }
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		 Vector<Character> sourse = new Vector<>();
	        Vector<Character> result = new Vector<>();
	        for(int i =1;i<=7;i++){
	            sourse.add((char)('0'+i));
	            sourse.add((char)('0'+i));
	        }

	        new q4().fullPermutation(sourse,result);
	}

}
